//---------------------------------------------------------------------------

#ifndef PaymentTypeDlgH
#define PaymentTypeDlgH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>

#include "DateUtilities.h"
#include "Error.h"
#include "PaymentTypeBridge.h"
#include <ComCtrls.hpp>

//---------------------------------------------------------------------------
class TfrmPaymentTypeDlg : public TForm
{
__published:	// IDE-managed Components
        TPanel *pnlMain;
        TBitBtn *btnOk;
        TBitBtn *btnHelp;
        TBitBtn *btnCancel;
        TLabel *lblDescription;
        TEdit *edtDescription;
        void __fastcall btnOKClick(TObject *Sender);
private:
        TPaymentTypeBridge* bridge;
        TPaymentType* paymentType;

        void ShowPaymentType();
        void GatherPaymentType();
        void AddNewPaymentType();
        void UpdatePaymentType();

        void ValidateData();
        void HandleError( TError * e);
public:
        __fastcall TfrmPaymentTypeDlg(TComponent* Owner, TPaymentTypeBridge* bridge, TPaymentType* paymentType);
};
//---------------------------------------------------------------------------
#endif
